package cn.niit.letuseatdemo.entity.domain;

import java.math.BigDecimal;
import java.util.Date;

import cn.niit.letuseatdemo.entity.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * @Description: 订单实体类
 * @Author: su_fuming
 * @CreateTime: 2022/11/8 21:44
 * @param: null
 * @return: null
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long orderId;

    /** 用户名称 */
    private String userName;

    /** 用户id */
    private Long userId;

    /** 菜品名称 */
    private String goodsName;

    /** 价格 */
    private BigDecimal goodsNum;
    /** 地址 */
    private String orderAddress;

    /** 订单状态 0代表未接单，1接单中，2代表已完成 */
    private Integer orderStatus;

    /** 删除标志 */
    private Integer delFlag;

    private Date createTime;

    /** 订单完成时间 */
    private Date finishTime;

    /** 创建人id */
    private Long createUserId;

    /** 创建人姓名 */
    private String createUserName;

    /** 创建时间 */
    private Date gmtCreate;

    /** 更新人id */
    private Long updateUserId;

    /** 更新人姓名 */
    private String updateUserName;

    /** 更新时间 */
    private Date gmtUpdate;

    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setGoodsName(String goodsName)
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName()
    {
        return goodsName;
    }
    public void setGoodsNum(BigDecimal goodsNum)
    {
        this.goodsNum = goodsNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public BigDecimal getGoodsNum()
    {
        return goodsNum;
    }
    public void setOrderStatus(Integer orderStatus)
    {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderStatus()
    {
        return orderStatus;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }
    public void setFinishTime(Date finishTime)
    {
        this.finishTime = finishTime;
    }

    public Date getFinishTime()
    {
        return finishTime;
    }
    public void setCreateUserId(Long createUserId)
    {
        this.createUserId = createUserId;
    }

    public Long getCreateUserId()
    {
        return createUserId;
    }
    public void setCreateUserName(String createUserName)
    {
        this.createUserName = createUserName;
    }

    public String getCreateUserName()
    {
        return createUserName;
    }
    public void setGmtCreate(Date gmtCreate)
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate()
    {
        return gmtCreate;
    }
    public void setUpdateUserId(Long updateUserId)
    {
        this.updateUserId = updateUserId;
    }

    public Long getUpdateUserId()
    {
        return updateUserId;
    }
    public void setUpdateUserName(String updateUserName)
    {
        this.updateUserName = updateUserName;
    }

    public String getUpdateUserName()
    {
        return updateUserName;
    }
    public void setGmtUpdate(Date gmtUpdate)
    {
        this.gmtUpdate = gmtUpdate;
    }

    public Date getGmtUpdate()
    {
        return gmtUpdate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("orderId", getOrderId())
                .append("userName", getUserName())
                .append("userId", getUserId())
                .append("goodsName", getGoodsName())
                .append("goodsNum", getGoodsNum())
                .append("orderStatus", getOrderStatus())
                .append("delFlag", getDelFlag())
                .append("createTime", getCreateTime())
                .append("finishTime", getFinishTime())
                .append("createUserId", getCreateUserId())
                .append("createUserName", getCreateUserName())
                .append("gmtCreate", getGmtCreate())
                .append("updateUserId", getUpdateUserId())
                .append("updateUserName", getUpdateUserName())
                .append("gmtUpdate", getGmtUpdate())
                .toString();
    }
}

